import request from '@/utils/request'

const BASE_PATH = '/db-gateway/db-ops';

interface MenusProps {
    type: React.Key
    menuName?: string
    applicationStr?: string
}

// 查询所有菜单
export const getMenus = async (params: MenusProps) => {
    return request(`${BASE_PATH}/menu/getMenuList`, {
        method: 'GET',
        params
    })
}
